var output_weather_temperater = document.querySelector(".output_weather_temperater")
var zt = document.querySelector(".zt")
var tr = document.querySelector(".tr")
var max_min_temp = document.querySelector(".max_min_temp")
var t_max_min_temp=document.querySelector(".t_max_min_temp")
var jianyi=document.querySelector(".jianyi")
var zuotian_date=document.querySelector("#zuotian_date")
var jintian_date=document.querySelector("#jintian_date")
var jintian_txt=document.querySelector("#jintian_txt")
var p_patter_txt_temp_max_id_zuotia=document.querySelector("#p_patter_txt_temp_max_id_zuotia")
var p_patter_txt_temp_min_id_zuotia=document.querySelector("#p_patter_txt_temp_min_id_zuotia")
var p_patter_txt_temp_min_id_type=document.querySelector("#p_patter_txt_temp_min_id_type")
var p_patter_txt_temp_min_id_fx=document.querySelector("#p_patter_txt_temp_min_id_fx")
var p_patter_txt_temp_min_id_fx_fl=document.querySelector("#p_patter_txt_temp_min_id_fx_fl")
var p_patter_txt_temp_max_id_jintian=document.querySelector("#p_patter_txt_temp_max_id_jintian")
var p_patter_txt_temp_min_id_jintian=document.querySelector("#p_patter_txt_temp_min_id_jintian")
var zuotian_txt=document.querySelector("#zuotian_txt")
var p_patter_txt_temp_min_id_type_jintian=document.querySelector("#p_patter_txt_temp_min_id_type_jintian")
var p_patter_txt_temp_min_id_fx_jintian=document.querySelector("#p_patter_txt_temp_min_id_fx_jintian")
var p_patter_txt_temp_min_id_fx_fl_jintian=document.querySelector("#p_patter_txt_temp_min_id_fx_fl_jintian")
var mingtian_date=document.querySelector("#mingtian_date")
var mingtian_txt=document.querySelector("#mingtian_txt")
var p_patter_txt_temp_max_id_mingtian=document.querySelector("#p_patter_txt_temp_max_id_mingtian")
var p_patter_txt_temp_min_id_mingtian=document.querySelector("#p_patter_txt_temp_min_id_mingtian")
var p_patter_txt_temp_min_id_type_mingtian=document.querySelector("#p_patter_txt_temp_min_id_type_mingtian")
var p_patter_txt_temp_min_id_fx_mingtian=document.querySelector("#p_patter_txt_temp_min_id_fx_mingtian")
var p_patter_txt_temp_min_id_fx_fl_mingtian=document.querySelector("#p_patter_txt_temp_min_id_fx_fl_mingtian")
var p_patter_txt_data_id_1=document.querySelector("#p_patter_txt_data_id_1")
var date_1=document.querySelector("#date_1")
var txt_1=document.querySelector("#txt_1")
var p_patter_txt_temp_max_id_1=document.querySelector("#p_patter_txt_temp_max_id_1")
var p_patter_txt_temp_min_id_2=document.querySelector("#p_patter_txt_temp_min_id_2")
var p_patter_txt_temp_min_id_type_1=document.querySelector("#p_patter_txt_temp_min_id_type_1")
var p_patter_txt_temp_min_id_fx_1=document.querySelector("#p_patter_txt_temp_min_id_fx_1")
var p_patter_txt_temp_min_id_fx_fl_1=document.querySelector("#p_patter_txt_temp_min_id_fx_fl_1")
var p_patter_txt_data_id_2=document.querySelector("#p_patter_txt_data_id_2")
var date_2=document.querySelector("#date_2")
var p_patter_txt_temp_max_id_2=document.querySelector("#p_patter_txt_temp_max_id_2")
var p_patter_txt_temp_min_id_2_2=document.querySelector("#p_patter_txt_temp_min_id_2_2")
var p_patter_txt_temp_min_id_type_2=document.querySelector("#p_patter_txt_temp_min_id_type_2")
var p_patter_txt_temp_min_id_fx_2=document.querySelector("#p_patter_txt_temp_min_id_fx_2")
var p_patter_txt_temp_min_id_fx_fl_2=document.querySelector("#p_patter_txt_temp_min_id_fx_fl_2")
var p_patter_txt_data_id_3=document.querySelector("#p_patter_txt_data_id_3")
var date_3=document.querySelector("#date_3")
var p_patter_txt_temp_max_id_3=document.querySelector("#p_patter_txt_temp_max_id_3")
var p_patter_txt_temp_min_id_2_3=document.querySelector("#p_patter_txt_temp_min_id_2_3")
var p_patter_txt_temp_min_id_type_3=document.querySelector("#p_patter_txt_temp_min_id_type_3")
var p_patter_txt_temp_min_id_fx_3=document.querySelector("#p_patter_txt_temp_min_id_fx_3")
var p_patter_txt_temp_min_id_fx_fl_3=document.querySelector("#p_patter_txt_temp_min_id_fx_fl_3")
var box=document.getElementsByClassName("part_l_1")
var date_locate=new Date()
jintian_date.innerHTML=(date_locate.getMonth()+1)+"/"+(date_locate.getDate())
zuotian_date.innerHTML=(date_locate.getMonth()+1)+"/"+(date_locate.getDate()-1)
mingtian_date.innerHTML=(date_locate.getMonth()+1)+"/"+(date_locate.getDate()+1)
date_1.innerHTML=(date_locate.getMonth()+1)+"/"+(date_locate.getDate()+2)
date_2.innerHTML=(date_locate.getMonth()+1)+"/"+(date_locate.getDate()+3)
date_3.innerHTML=(date_locate.getMonth()+1)+"/"+(date_locate.getDate()+4)
axios.get('https://devapi.qweather.com/v7/weather/now?location=101010100&key=6733b96162ed41cdbf15a248550063de')
    .then(function (response) {
        output_weather_temperater.innerHTML = response.data.now.temp + "°"
        zt.innerHTML = response.data.now.text
        tr.innerHTML = response.data.now.windDir
        jintian_txt.innerHTML= response.data.now.text
    })
    .catch(function (error) {
        console.log(error);
    });
axios.get('https://devapi.qweather.com/v7/weather/3d?location=101010100&key=6733b96162ed41cdbf15a248550063de')
    .then(function (response) {
        max_min_temp.innerHTML = response.data.daily[0].tempMax + "/" + response.data.daily[0].tempMin + "°"
        t_max_min_temp.innerHTML= response.data.daily[1].tempMax + "/" + response.data.daily[1].tempMin + "°"
        mingtian_txt.innerHTML=response.data.daily[1].textDay
        txt_1.innerHTML=response.data.daily[2].textDay
    })
    .catch(function (error) {
        console.log(error);
    });
    axios.get('http://wthrcdn.etouch.cn/weather_mini?city=重庆')
    .then(function (response) {
        console.log(response)
        jianyi.innerHTML=response.data.data.ganmao
        p_patter_txt_temp_max_id_zuotia.innerHTML=response.data.data.yesterday.high.substring(3)
        p_patter_txt_temp_min_id_zuotia.innerHTML=response.data.data.yesterday.low.substring(3)
        p_patter_txt_temp_min_id_type.innerHTML=response.data.data.yesterday.type
        p_patter_txt_temp_min_id_fx.innerHTML=response.data.data.yesterday.fx
        p_patter_txt_temp_min_id_fx_fl.innerHTML=response.data.data.yesterday.fl.substring(9,11)
        p_patter_txt_temp_max_id_jintian.innerHTML=response.data.data.forecast[0].high.substring(3)
        p_patter_txt_temp_min_id_jintian.innerHTML=response.data.data.forecast[0].low.substring(3)
        p_patter_txt_temp_min_id_type_jintian.innerHTML=response.data.data.forecast[0].type
        p_patter_txt_temp_min_id_fx_jintian.innerHTML=response.data.data.forecast[0].fengxiang
        p_patter_txt_temp_min_id_fx_fl_jintian.innerHTML=response.data.data.forecast[0].fengli.substring(9,11)
        p_patter_txt_temp_max_id_mingtian.innerHTML=response.data.data.forecast[1].high.substring(3)
        p_patter_txt_temp_min_id_mingtian.innerHTML=response.data.data.forecast[1].low.substring(3)
        p_patter_txt_temp_min_id_type_mingtian.innerHTML=response.data.data.forecast[1].type
        p_patter_txt_temp_min_id_fx_mingtian.innerHTML=response.data.data.forecast[1].fengxiang
        p_patter_txt_temp_min_id_fx_fl_mingtian.innerHTML=response.data.data.forecast[1].fengli.substring(9,11)
        p_patter_txt_data_id_1.innerHTML=response.data.data.forecast[2].date.substring(3,6)
        p_patter_txt_temp_max_id_1.innerHTML=response.data.data.forecast[2].high.substring(3)
        p_patter_txt_temp_min_id_2.innerHTML=response.data.data.forecast[2].low.substring(3)
        p_patter_txt_temp_min_id_type_1.innerHTML=response.data.data.forecast[2].type
        p_patter_txt_temp_min_id_fx_1.innerHTML=response.data.data.forecast[2].fengxiang
        p_patter_txt_temp_min_id_fx_fl_1.innerHTML=response.data.data.forecast[2].fengli.substring(9,11)
        p_patter_txt_data_id_2.innerHTML=response.data.data.forecast[3].date.substring(3,6)
        p_patter_txt_temp_max_id_2.innerHTML=response.data.data.forecast[3].high.substring(3)
        p_patter_txt_temp_min_id_2_2.innerHTML=response.data.data.forecast[3].low.substring(3)
        p_patter_txt_temp_min_id_type_2.innerHTML=response.data.data.forecast[3].type
        p_patter_txt_temp_min_id_fx_2.innerHTML=response.data.data.forecast[3].fengxiang
        p_patter_txt_temp_min_id_fx_fl_2.innerHTML=response.data.data.forecast[3].fengli.substring(9,11)
        p_patter_txt_data_id_3.innerHTML=response.data.data.forecast[4].date.substring(3,6)
        p_patter_txt_temp_max_id_3.innerHTML=response.data.data.forecast[4].high.substring(3)
        p_patter_txt_temp_min_id_2_3.innerHTML=response.data.data.forecast[4].low.substring(3)
        p_patter_txt_temp_min_id_type_3.innerHTML=response.data.data.forecast[4].type
        p_patter_txt_temp_min_id_fx_3.innerHTML=response.data.data.forecast[4].fengxiang
        p_patter_txt_temp_min_id_fx_fl_3.innerHTML=response.data.data.forecast[4].fengli.substring(9,11)
    })
    .catch(function (error) {
        console.log(error);
    });
for(var i=0;i<16;i++)
{
    box[i].onclick=()=>{
        alert("什么都没有")
    }
}           